package com.haorui.lygyd.employeemanager.dto;

import com.haorui.base.core.utils.BeanUtil;
import com.haorui.base.core.vo.DataTransferObject;
import com.haorui.lygyd.employeemanager.entity.MemberEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Transient;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * 创建人: 系统生成
 * 日期: Sat Sep 02 20:04:29 CST 2017
 */
@Data
public class MemberDto implements DataTransferObject<MemberEntity> {
    private String id;
    @ApiModelProperty(value = "openId")
    private String openId;
    @ApiModelProperty(value = "姓名")
    private String xingMing;
    @ApiModelProperty(value = "性别")
    private String xingBie;
    @ApiModelProperty(value = "身份证号")
    private String shengFenZhengHao;
    @ApiModelProperty(value = "手机号码")
    private String shouJiHaoMa;
    @ApiModelProperty(value = "密码")
    private String miMa;
    @ApiModelProperty(value = "上级id")
    private String pId;
    @ApiModelProperty(value = "上级姓名")
    private String pName;
    @ApiModelProperty(value = "校区id")
    private String schoolId;
    @ApiModelProperty(value = "校区名称")
    private String schoolName;
    @ApiModelProperty(value = "是否锁定")
    private Boolean shiFouSuoDing;
    @ApiModelProperty(value = "新密码")
    private String newMiMa;
    @ApiModelProperty(value = "支付宝")
    private String alipay;

    @Override
    public MemberEntity buildPO() {
        MemberEntity memberEntity = new MemberEntity();
        BeanUtil.beanCopyIgnoreDefault(this, memberEntity);
        return memberEntity;
    }

    @Override
    public String getId() {
        return this.id;
    }
}
